from pythonProject.login import login


test_data = [
    {"username": "13488888888", "password": "123456"},
    {"username": "", "password": "123456"}
]

for i in test_data:
    tel = i["username"]
    pwd = i["password"]

    res = login(tel, pwd)  #  同时传两个参数
    if tel == "13488888888":

        assert "账号正确" == res
    else:
        assert "账号错误" == res

print(res)
